package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 工单备件物料表
 * </p>
 *
 * @author WEN
 * @since 2023-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkSpareMaterial对象", description="工单备件物料表")
public class ZjWorkSpareMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "工单ID")
    private Long workId;

    @ApiModelProperty(value = "工单备件表ID")
    private Long workSpareId;

    @ApiModelProperty(value = "状态：1-待审核，2-已通过，3-已驳回")
    private Integer status;

    @ApiModelProperty(value = "收支类型：1-品牌商家承担，2-平台承担")
    private Integer type;

    @ApiModelProperty(value = "备件表ID")
    private Long spareId;

    @ApiModelProperty(value = "备件规格信息表ID")
    private Long specId;

    @ApiModelProperty(value = "数量")
    private Integer qty;

    @ApiModelProperty(value = "平台承担费用")
    private BigDecimal price;

    @ApiModelProperty(value = "向服务商支付费用")
    private BigDecimal payNetworkPrice;

    @ApiModelProperty(value = "收取商家费用")
    private BigDecimal receiveFactoryPrice;

    @ApiModelProperty(value = "仓库表ID")
    private Long storeId;

    @ApiModelProperty(value = "仓库仓位表ID")
    private Long storePositionId;

    @ApiModelProperty(value = "质保状态，是否保外：0-否、保内，1-是、保外")
    @TableField("is_overinsured")
    private Boolean overinsured;

    @ApiModelProperty(value = "确认使用：0-待确认，1-未使用，2-已使用")
    private Integer sureUseStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "申请/创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtUpdate;


}
